package com.yupi.usercenter.base.model.dto;


import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 云路供应链科技有限公司 版权所有 © Copyright 2020
 * <p>
 * 分页 通用DTO
 *
 * @author 沈昱
 * @version 1.0.0
 * @date Created in 2020/8/21
 */
@Data
public class PageDTO extends BaseDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 当前页
     */
    @NotNull
    @Min(value = 1)
    private int current;

    /**
     * 页大小
     */
    @NotNull
    @Min(value = 1)
    private int size;


}
